-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix WithSingleton
and WithSingletonProxy
API
#520
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self-review
public bool? LogSingletonIdentificationFailure { get; set; } | ||
|
||
/// <summary> | ||
/// The period the proxy will wait until it logs a missing singleton warning, defaults to 1 minute | ||
/// </summary> | ||
public TimeSpan? SingletonIdentificationFailurePeriod { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added Akka 1.5.31 missing singleton detection feature
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
/// <list type="bullet"> | ||
/// <item> | ||
/// The complete singleton manager actor path name will be | ||
/// <c>akka://MyActorSystem/user/singletonManagerName/singletonName</c> | ||
/// </item> | ||
/// <item> | ||
/// The complete singleton proxy actor path name, if created, will be | ||
/// <c>akka://MyActorSystem/user/singletonName-proxy</c> | ||
/// </item> | ||
/// </list> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added explanation on what the actor names will be in the XML-DOC
public static AkkaConfigurationBuilder WithSingleton<TKey>( | ||
this AkkaConfigurationBuilder builder, | ||
string singletonManagerName, | ||
string singletonName, | ||
Func<ActorSystem, IActorRegistry, IDependencyResolver, Props> propsFactory, | ||
ClusterSingletonOptions? options = null, | ||
bool createProxyToo = true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New API that allows users to specify the singleton manager actor name.
The resulting singleton path will be akka://MyActorSystem/user/singletonManagerName/singletonName
Old APIs are untouched, they will still generate the same singleton actor path akka://MyActorSystem/user/singletonName/singletonName
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Fixes #509
Changes
Checklist
For significant changes, please ensure that the following have been completed (delete if not relevant):